package com.mjk;


import com.mjk.common.web.getway.annotation.EnableGetWay;
import com.mjk.common.web.getway.transfer.GetwayTransferType;
import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.data.redis.repository.configuration.EnableRedisRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * 测试启动类
 */
@EnableGetWay(basePackages={"com.mjk"},transferType = GetwayTransferType.HTTP)
@SpringBootApplication(scanBasePackages = {"com.mjk", "org.jeecg"}, exclude = {DataSourceAutoConfiguration.class})
@MapperScan(basePackages="com.mjk",annotationClass= Mapper.class)
@EnableTransactionManagement
@EnableAspectJAutoProxy
@EnableWebMvc
@EnableRedisRepositories(basePackages = "com.mjk")
public class ExampleStart extends SpringBootServletInitializer {
	public static void main(String[] args) {
		SpringApplication.run(ExampleStart.class, args);
	}
	
}